package com.corp.common.base.response;

import com.corp.platform.common.response.IResultCode;
import lombok.AllArgsConstructor;
import lombok.Getter;

/**
 * @Author Keanu
 * @Date 2020/7/7 0007 15:00
 * @Version
 **/
@Getter
@AllArgsConstructor
public enum  AuthResultCode implements IResultCode {
    /**
     * 用户没有有效的login_token和refresh_token,直接告诉前端1002
     */
    LOGIN_REQUIRED(1002,"用户需要登录"),

    /**
     * 没有有效的login_token,但是有有效的refresh_token,告诉前端调用刷新token
     */
    REFRESH_TOKEN(1003,"需要刷新token"),

    PERMISSION_REQUIRED(1004,"需要权限"),

    GUEST_REQUIRED(1005,"需要访客身份");

    private final int code;

    private final String msg;
}
